<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>Person-jsp</title>
</head>
<body>
<jsp:useBean id="person" class="com.example.demo.bean.Person" scope="page">

</jsp:useBean>
<div>
    <ul>
        <li>
            姓名:<jsp:getProperty name="person" property="name"/>

        </li>
        <li>
            性别:<jsp:getProperty name="person" property="sex"/>
        </li>
        <li>
            年龄：<jsp:getProperty name="person" property="age"/>
        </li>
        <li>
            已婚：<jsp:getProperty name="person" property="married"/>
        </li>
    </ul>
</div>
</body>
</html>